
function firstPage() {
    $("#currentPage").val(1);
    $("#pageMethod").val("first");
    $("#pageForm").submit();
}
function previousPage() {

    var currentPage = parseInt($("#spanCurrentPage").text());
    $("#currentPage").val(currentPage - 1);
    $("#pageMethod").val("previous");
    $("#pageForm").submit();
}
function nextPage() {

    var currentPage = parseInt($("#spanCurrentPage").text());
    console.log("测试获取的当前页："+currentPage);
    $("#currentPage").val(currentPage + 1);
    $("#pageMethod").val("next");
    $("#pageForm").submit();
}

function lastPage() {
    $("#currentPage").val($("#totalPage").text());

    $("#pageMethod").val("last");
    $("#pageForm").submit();
}

